package com.naiterui.ehp.ps.sms.bean;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * 平台持久化信息
 *
 * @author
 * @since 1.0.0
 */
@Entity
@Table(name = "sms_platform")
public class Platform implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -3875522083490627969L;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Integer id;

    @Column(name = "platform_name")
    private String platformName;     // 平台名称

    @Column(name = "description")
    private String description;     // 描述

    /**
     * 状态(0:启用，1：停用)
     */
    @Column(name = "status")
    private Integer status;

    @Column(name = "created_at")
    private Date createdAt;         // 创建时间

    @Column(name = "changed_at")
    private Date changedAt;         // 修改时间

    @Column(name = "created_by")
    private String createdBy;       // 创建人

    @Column(name = "changed_by")
    private String changedBy;       // 修改人

    @Version                       // 版本
    private Integer version;

    public Platform() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPlatformName() {
        return platformName;
    }

    public void setPlatformName(String platformName) {
        this.platformName = platformName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getChangedAt() {
        return changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getChangedBy() {
        return changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
